<html>
 <head>
  <meta charset="utf-8"/>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
  <title>
   simbabest的回复  | 数螺 | NAUT IDEA
  </title>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" rel="stylesheet"/>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
  <style type="text/css">
   #xmain img {
                  max-width: 100%;
                  display: block;
                  margin-top: 10px;
                  margin-bottom: 10px;
                }

                #xmain p {
                    line-height:150%;
                    font-size: 16px;
                    margin-top: 20px;
                }

                #xmain h2 {
                    font-size: 24px;
                }

                #xmain h3 {
                    font-size: 20px;
                }

                #xmain h4 {
                    font-size: 18px;
                }


                .header {
	           background-color: #0099ff;
	           color: #ffffff;
	           margin-bottom: 20px;
	        }

	        .header p {
                  margin: 0px;
                  padding: 10px 0;
                  display: inline-block;  
                  vertical-align: middle;
                  font-size: 16px;
               }

               .header a {
                 color: white;
               }

              .header img {
                 height: 25px;
              }
  </style>
  <script src="http://cdn.bootcss.com/jquery/3.0.0/jquery.min.js">
  </script>
  <script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript">
   MathJax.Hub.Config({elements: ["bbpress-forums"]});
  </script>
  <script src="http://nautstatic-10007657.file.myqcloud.com/static/css/readability.min.js" type="text/javascript">
  </script>
  <script type="text/javascript">
   $(document).ready(function() {
                 var loc = document.location;
                 var uri = {
                  spec: "http://cos.name/cn/profile/380121/replies/",
                  host: "http://cos.name",
                  prePath: "http://cos.name",
                  scheme: "http",
                  pathBase: "http://cos.name/"
                 };
    
                 var documentClone = document.cloneNode(true);
                 var article = new Readability(uri, documentClone).parse();
     
                 document.getElementById("xmain").innerHTML = article.content;
                });
  </script>
  <!-- 1466443008: Accept with keywords: (title(0.0):论坛, topn(0.3):RSS订阅,非中文,帖子,R语言,会员,缺失值,用户名,题目,主站,转码,线性插值,文档,参数,收藏夹,向量,中文,函数,版主,python,胡球,问题,密码,总计,乱码,有意思,代码,主题,普通,论坛,讨论区).-->
 </head>
 <body class="bbp-user-page single singular bbpress single-author sidebar" onload="">
  <div class="header">
   <div class="container">
    <div class="row">
     <div class="col-xs-6 col-sm-6 text-left">
      <a href="/databee">
       <img src="http://nautidea-10007657.cos.myqcloud.com/logo_white.png"/>
      </a>
      <a href="/databee">
       <p>
        数螺
       </p>
      </a>
     </div>
     <div class="hidden-xs col-sm-6 text-right">
      <p>
       致力于数据科学的推广和知识传播
      </p>
     </div>
    </div>
   </div>
  </div>
  <div class="container text-center">
   <h1>
    simbabest的回复
   </h1>
  </div>
  <div class="container" id="xmain">
   <div class="hfeed site" id="page">
    <header class="site-header" id="masthead" role="banner">
     <div id="cos-logo">
      <a href="http://cos.name/cn">
       <img src="http://cos.name/cn/wp-content/themes/COS-forest/images/headers/cos-logo.png"/>
      </a>
     </div>
     <div class="navbar" id="navbar">
      <nav class="navigation main-navigation" id="site-navigation" role="navigation">
       <h3 class="menu-toggle">
        菜单
       </h3>
       <div class="menu-%e8%8f%9c%e5%8d%951-container">
        <ul class="nav-menu" id="menu-%e8%8f%9c%e5%8d%951">
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-407772" id="menu-item-407772">
          <a href="http://cos.name/cn/">
           论坛首页
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-407773" id="menu-item-407773">
          <a href="http://cos.name/cn/forums/">
           讨论区
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-407774" id="menu-item-407774">
          <a href="http://cos.name/cn/wp-login.php?action=register">
           注册
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-407819" id="menu-item-407819">
          <a href="http://cos.name/">
           主站
          </a>
         </li>
        </ul>
       </div>
      </nav>
      <!-- #site-navigation -->
     </div>
     <!-- #navbar -->
    </header>
    <!-- #masthead -->
    <div class="site-main" id="main">
     <div class="content-area" id="primary">
      <div class="site-content" id="content" role="main">
       <article class="post-0 type- status-publish hentry" id="post-0">
        <header class="entry-header">
         <h1 class="entry-title">
          simbabest
         </h1>
        </header>
        <!-- .entry-header -->
        <div class="entry-content">
         <div id="bbpress-forums">
          <div id="bbp-user-wrapper">
           <div id="bbp-single-user-details">
            <div id="bbp-user-avatar">
             <span class="vcard">
              <a class="url fn n" href="http://cos.name/cn/profile/380121/" rel="me" title="simbabest">
               <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=150&amp;d=monsterid&amp;r=g"/>
              </a>
             </span>
            </div>
            <!-- #author-avatar -->
            <div id="bbp-user-navigation">
             <ul>
              <li class="">
               <span class="vcard bbp-user-profile-link">
                <a class="url fn n" href="http://cos.name/cn/profile/380121/" rel="me" title="simbabest的档案">
                 档案
                </a>
               </span>
              </li>
              <li class="">
               <span class="bbp-user-topics-created-link">
                <a href="http://cos.name/cn/profile/380121/topics/" title="simbabest发起的主题">
                 发起的主题
                </a>
               </span>
              </li>
              <li class="current">
               <span class="bbp-user-replies-created-link">
                <a href="http://cos.name/cn/profile/380121/replies/" title="simbabest创建的回复">
                 创建的回复
                </a>
               </span>
              </li>
              <li class="">
               <span class="bbp-user-favorites-link">
                <a href="http://cos.name/cn/profile/380121/favorites/" title="simbabest的收藏夹">
                 收藏夹
                </a>
               </span>
              </li>
             </ul>
            </div>
            <!-- #bbp-user-navigation -->
           </div>
           <!-- #bbp-single-user-details -->
           <div id="bbp-user-body">
            <div class="bbp-user-replies-created" id="bbp-user-replies-created">
             <h2 class="entry-title">
              回复的主题
             </h2>
             <div class="bbp-user-section">
              <div class="bbp-pagination">
               <div class="bbp-pagination-count">
                查看 15 个帖子 - 1 到 15（总计 15 个）
               </div>
               <div class="bbp-pagination-links">
               </div>
              </div>
              <ul class="forums bbp-replies" id="topic-0-replies">
               <li class="bbp-header">
                <div class="bbp-reply-author">
                 作者
                </div>
                <!-- .bbp-reply-author -->
                <div class="bbp-reply-content">
                 帖子
                </div>
                <!-- .bbp-reply-content -->
               </li>
               <!-- .bbp-header -->
               <li class="bbp-body">
                <div class="bbp-reply-header" id="post-408466">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2014年11月28日 下午1:55
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/408434/">
                    xts创建遇到问题，求教
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/408434/#post-408466">
                   2 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-408466 -->
                <div class="odd bbp-parent-forum-999 bbp-parent-topic-408434 bbp-reply-position-2 user-id-380121 post-408466 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   &gt; mxts&lt;-as.xts(realData[,c(2,3,4)],order.by =realData$Date)
                   <br/>
                   &gt; mxts
                   <br/>
                   Ret        Ret1        Ret2
                   <br/>
                   2002-07-01 -0.011060737 1.17604e-04 1.08934e-04
                   <br/>
                   2002-07-02  0.006543289 9.05658e-05 8.72709e-05
                   <br/>
                   2002-07-03  0.003454995 5.51476e-05 5.65160e-05
                   <br/>
                   2002-07-04 -0.010325115 6.18436e-05 6.01633e-05
                   <br/>
                   2002-07-05  0.005268793 7.49235e-05 4.92564e-05
                   <br/>
                   &gt; class(mxts)
                   <br/>
                   [1] “xts” “zoo”
                   <br/>
                   &gt;
                  </p>
                  <p>
                   第一列为日期列 非numeric类型 不能做第一个参数传递进去,字符也一样
                   <br/>
                   另外也需要指定order.by
                   <br/>
                   或者 mxts&lt;-as.xts(realData[,-1],order.by =realData$Date) 也可以 -1表示不要第一列
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-375466">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年11月12日 上午5:02
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/133345/">
                    阿里双十一交易破百亿 总交易或超去年一倍
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/133345/#post-375466">
                   5 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-375466 -->
                <div class="even bbp-parent-forum-1001 bbp-parent-topic-133345 bbp-reply-position-5 user-id-380121 post-375466 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   版主 别留情, 直接删掉
                  </p>
                  <p>
                   这种消息到处泛滥,有必要在这里保留？
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-371419">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年10月27日 上午4:06
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/129915/">
                    R语言怎样补全时间序列数据？
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/129915/#post-371419">
                   2 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-371419 -->
                <div class="odd bbp-parent-forum-999 bbp-parent-topic-129915 bbp-reply-position-2 user-id-380121 post-371419 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   回复 第1楼 的 fountainer：
                  </p>
                  <pre class="highlight ">&gt; require(xts)
&gt; x&lt;-c(235,263,345)
&gt; dt_x&lt;-c('2013-04-05','2013-04-06','2013-04-10')
&gt; xse&lt;-xts(x,as.Date(dt))
&gt; y&lt;-c(NA,NA,NA)
&gt; dt_y&lt;-c('2013-04-07','2013-04-08','2013-04-09')
&gt; yse&lt;-xts(y,as.Date(dt_y))
&gt; nse&lt;-rbind.xts(xse,yse)
警告信息：
In rbind.xts(xse, yse) : mismatched types: converting objects to numeric
&gt; nse
           [,1]
2013-04-05  235
2013-04-06  263
2013-04-07   NA
2013-04-08   NA
2013-04-09   NA
2013-04-10  345
&gt; nse&lt;-na.locf(nse)
&gt; nse
           [,1]
2013-04-05  235
2013-04-06  263
2013-04-07  263
2013-04-08  263
2013-04-09  263
2013-04-10  345
</pre>
                  <p>
                  </p>
                  <p>
                   贴了这么多无用代码,其实我想回答的就是
                   <br/>
                   xts.rbind 和 na.locf
                   <br/>
                   我还可以再啰嗦两句：
                   <br/>
                   na.approx(x)  #对缺失值进行线性插值
                   <br/>
                   na.spline(x)  #对缺失值进行样条插值
                   <br/>
                   na.locf(x)    #末次观测值结转法
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-370999">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年10月25日 上午1:27
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/126648/">
                    r中生成的统计模型报告如何完整地插入到word文档中
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/126648/#post-370999">
                   13 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-370999 -->
                <div class="even bbp-parent-forum-999 bbp-parent-topic-126648 bbp-reply-position-13 user-id-380121 post-370999 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   回复 第12楼 的 cloud wei：运行了一下demo  确实还不错啊.不知道 能否打开现有的文档 进行特定部分的修改.
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-370994">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年10月25日 上午12:45
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/129239/">
                    看到一个有意思的题目：a~z，0:9，所有3位的密码组合
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/129239/page/2/#post-370994">
                   17 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-370994 -->
                <div class="odd bbp-parent-forum-996 bbp-parent-topic-129239 bbp-reply-position-17 user-id-380121 post-370994 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   回复 第10楼 的 肖楠：
                  </p>
                  <p>
                   大神的世界 好难懂   [s:12]
                   <br/>
                   求解释 ,直接调用paste0 和do.call 调用 居然不一样:
                  </p>
                  <pre class="highlight ">&gt; z&lt;-expand.grid(c(1,2,3),c(1,2))
&gt; z
  Var1 Var2
1    1    1
2    2    1
3    3    1
4    1    2
5    2    2
6    3    2
&gt; paste0(z)
[1] "c(1, 2, 3, 1, 2, 3)" "c(1, 1, 1, 2, 2, 2)"
&gt; do.call(paste0,z)
[1] "11" "21" "31" "12" "22" "32"
</pre>
                  <p>
                   另外 ,追问一句 outer函数 到底是向量化运算不?上面贴了代码 但我看不出来..
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-370752">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年10月24日 上午6:46
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/129239/">
                    看到一个有意思的题目：a~z，0:9，所有3位的密码组合
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/129239/#post-370752">
                   8 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-370752 -->
                <div class="even bbp-parent-forum-996 bbp-parent-topic-129239 bbp-reply-position-8 user-id-380121 post-370752 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   回复 第5楼 的 zjgslxh：
                   <br/>
                   outer 函数:
                  </p>
                  <pre class="highlight ">function (X, Y, FUN = "*", ...)
{
    if (is.array(X)) {
        dX &lt;- dim(X)
        nx &lt;- dimnames(X)
        no.nx &lt;- is.null(nx)
    }
    else {
        dX &lt;- length(X)
        no.nx &lt;- is.null(names(X))
        if (!no.nx)
            nx &lt;- list(names(X))
    }
    if (is.array(Y)) {
        dY &lt;- dim(Y)
        ny &lt;- dimnames(Y)
        no.ny &lt;- is.null(ny)
    }
    else {
        dY &lt;- length(Y)
        no.ny &lt;- is.null(names(Y))
        if (!no.ny)
            ny &lt;- list(names(Y))
    }
    if (is.character(FUN) &amp;&amp; FUN == "*") {
        robj &lt;- as.vector(X) %*% t(as.vector(Y))
        dim(robj) &lt;- c(dX, dY)
    }
    else {
        FUN &lt;- match.fun(FUN)
        Y &lt;- rep(Y, rep.int(length(X), length(Y)))
        if (length(X))
            X &lt;- rep(X, times = ceiling(length(Y)/length(X)))
        robj &lt;- FUN(X, Y, ...)
        dim(robj) &lt;- c(dX, dY)
    }
    if (no.nx)
        nx &lt;- vector("list", length(dX))
    else if (no.ny)
        ny &lt;- vector("list", length(dY))
    if (!(no.nx &amp;&amp; no.ny))
        dimnames(robj) &lt;- c(nx, ny)
    robj
}
&lt;bytecode: 0x07f2d728&gt;
&lt;environment: namespace:base&gt;
</pre>
                  <p>
                   不好意思,知识浅薄 我也看不粗来 它是不是向量化运算.
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-370746">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年10月24日 上午6:32
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/129239/">
                    看到一个有意思的题目：a~z，0:9，所有3位的密码组合
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/129239/#post-370746">
                   7 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-370746 -->
                <div class="odd bbp-parent-forum-996 bbp-parent-topic-129239 bbp-reply-position-7 user-id-380121 post-370746 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   显然 这里要求可以重复的 .
                   <br/>
                   比如取 aaa ,aab ,abb,aba,bbb 都是可以的
                   <br/>
                   combn 是排列组合 ,不放回的取样.
                   <br/>
                   弄个小点的样本说明问题
                  </p>
                  <pre class="highlight ">&gt; combn(c('a','b','c','d','e'),3)
     [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
[1,] "a"  "a"  "a"  "a"  "a"  "a"  "b"  "b"  "b"  "c"
[2,] "b"  "b"  "b"  "c"  "c"  "d"  "c"  "c"  "d"  "d"
[3,] "c"  "d"  "e"  "d"  "e"  "e"  "d"  "e"  "e"  "e"
</pre>
                  <p>
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-370703">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年10月24日 上午4:44
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/129239/">
                    看到一个有意思的题目：a~z，0:9，所有3位的密码组合
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/129239/#post-370703">
                   4 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-370703 -->
                <div class="even bbp-parent-forum-996 bbp-parent-topic-129239 bbp-reply-position-4 user-id-380121 post-370703 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   是的 要避免使用循环,尽可能使用R内置的向量化运算函数.outer应该就是.
                  </p>
                  <p>
                   如何把 result [36x36x36 的一个超大矩阵.] 按元素 取出来 按行写入到文本文件呢 ？
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-369640">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年10月20日 上午6:51
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/128328/">
                    R  XLConnect包不能载入，求助
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/128328/#post-369640">
                   2 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-369640 -->
                <div class="odd bbp-parent-forum-999 bbp-parent-topic-128328 bbp-reply-position-2 user-id-380121 post-369640 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   很显然你没装Java 或者没有设置Java的环境变量.
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-355682">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年9月11日 上午6:40
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/115308/">
                    关于RPostgreSQL 的中文乱码问题
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/115308/#post-355682">
                   5 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-355682 -->
                <div class="even bbp-parent-forum-999 bbp-parent-topic-115308 bbp-reply-position-5 user-id-380121 topic-author post-355682 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   你的感觉是对的,真心有救了;再次表示感谢.
                  </p>
                  <p>
                   看来以后只能是
                   <br/>
                   中文输入的地方就用：
                  </p>
                  <pre class="highlight ">iconv("中文","CP936","UTF8")</pre>
                  <p>
                   中文输出的地方就用:
                  </p>
                  <pre class="highlight ">iconv("乱码","UTF8","CP936")</pre>
                  <p>
                   还好有这个转码函数.要不然windows用户没法混了
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-355586">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年9月10日 上午6:38
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/115308/">
                    关于RPostgreSQL 的中文乱码问题
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/115308/#post-355586">
                   3 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-355586 -->
                <div class="odd bbp-parent-forum-999 bbp-parent-topic-115308 bbp-reply-position-3 user-id-380121 topic-author post-355586 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   感谢回复,按options的方法 ,再试一次:
                  </p>
                  <pre class="highlight ">&gt; options(encoding = "UTF-8")
&gt; source("calc_index.R")
</pre>
                  <p>
                  </p>
                  <p>
                   1.执行查询函数 中文参数:
                  </p>
                  <pre class="highlight ">&gt; getIndexComp('3D概念')
[1] "select blkname,secode from indst_classify where blkname like '3D概念%' ORDER BY secode limit 10"
错误于postgresqlExecStatement(conn, statement, ...) :
  RS-DBI driver: (could not Retrieve the result : ERROR:  invalid byte sequence for encoding "UTF8": 0xb8
)
</pre>
                  <p>
                  </p>
                  <p>
                   2 执行查询函数 非中文参数.
                  </p>
                  <pre class="highlight ">&gt; getIndexComp('3D')
[1] "select blkname,secode from indst_classify where blkname like '3D%' ORDER BY secode limit 10"
    blkname   secode
1  3D鎵撳嵃 SH600071
2  3D鎵撳嵃 SH600288
3  3D鎵撳嵃 SH600765
4  3D鎵撳嵃 SH600806
5  3D鎵撳嵃 SH601313
6  3D鎵撳嵃 SH603002
7  3D鎵撳嵃 SZ000988
8  3D鎵撳嵃 SZ002008
9  3D鎵撳嵃 SZ002117
10 3D鎵撳嵃 SZ002189
</pre>
                  <p>
                   3.执行查询函数 乱码中文的参数.将错就错
                  </p>
                  <pre class="highlight ">&gt; getIndexComp('3D鎵撳嵃')
[1] "select blkname,secode from indst_classify where blkname like '3D鎵撳嵃%' ORDER BY secode limit 10"
    blkname   secode
1  3D鎵撳嵃 SH600071
2  3D鎵撳嵃 SH600288
3  3D鎵撳嵃 SH600765
4  3D鎵撳嵃 SH600806
5  3D鎵撳嵃 SH601313
6  3D鎵撳嵃 SH603002
7  3D鎵撳嵃 SZ000988
8  3D鎵撳嵃 SZ002008
9  3D鎵撳嵃 SZ002117
10 3D鎵撳嵃 SZ002189
</pre>
                  <p>
                  </p>
                  <p>
                   是不是已经无语了?
                  </p>
                  <p>
                   对了再查看一次 sessionInfo()
                  </p>
                  <pre class="highlight ">&gt; sessionInfo()
R version 2.15.3 (2013-03-01)
Platform: i386-w64-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936    
attached base packages:
[1] stats     graphics  grDevices utils     datasets
[6] methods   base     
other attached packages:
[1] RPostgreSQL_0.4 DBI_0.2-7
</pre>
                  <p>
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-355553">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年9月10日 上午1:51
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/113214/">
                    R 循环输出
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/113214/#post-355553">
                   6 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-355553 -->
                <div class="even bbp-parent-forum-999 bbp-parent-topic-113214 bbp-reply-position-6 user-id-380121 post-355553 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   回复 第5楼 的 doctorjxd：过了5天 ,自己又来推翻自己 赞一个,这样的人必然在不断进步.
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-347983">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年5月29日 上午1:48
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/107440/">
                    LyX和Knitr综合使用问题
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/107440/#post-347983">
                   4 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-347983 -->
                <div class="odd bbp-parent-forum-999 bbp-parent-topic-107440 bbp-reply-position-4 user-id-380121 post-347983 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   谢老大 早上好.
                   <br/>
                   一针见血的指明问题了
                   <br/>
                   的确是中文的问题,我也正在查阅资料琢磨解决.
                   <br/>
                   我是这几天才刚用上knitr 并且之前的tex基础几乎为0,在cos上看见别人类似的问题,还没仔细分析就胡球回答一通 惭愧了.
                  </p>
                  <p>
                   BTW,我主要是在使用 blotter+quantmod+quantstrat等几个包
                   <br/>
                   主要目的是想用您的knitr包帮助动态生成 证券交易的策略验证报告.
                   <br/>
                   两个月前正式接触R.不过呢我有两年的Python编程经验.
                   <br/>
                   这方面 请谢老大 以后多指点.[s:13]
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-347950">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年5月28日 上午7:53
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/107440/">
                    LyX和Knitr综合使用问题
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/107440/#post-347950">
                   2 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-347950 -->
                <div class="even bbp-parent-forum-999 bbp-parent-topic-107440 bbp-reply-position-2 user-id-380121 post-347950 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   同情你  没人回复.
                   <br/>
                   我也遇到跟你一样的问题.在Rsutdio中运行
                  </p>
                  <pre class="highlight ">knit2pdf("testLyx.Rnw") </pre>
                  <p>
                   失败
                   <br/>
                   也不是全失败 至少tex中间文件还是正确生成了.
                  </p>
                  <p>
                   于是手动去运行..MikTex 的bin目录texi2dvi.exe
                  </p>
                  <pre class="highlight ">texi2dvi knitr-minimal.tex --pdf</pre>
                  <p>
                   结果就能成功生成pdf
                   <br/>
                   如下：
                   <br/>
                   Output written on knitr-minimal.pdf (1 page, 57301 bytes).
                   <br/>
                   Transcript written on knitr-minimal.log.
                  </p>
                  <p>
                   最后 我回到原生的Rgui中运行 啥问题也没发生 一切正常
                  </p>
                  <pre class="highlight ">&gt;knit2pdf("knitr-minimal.Rnw")
|
|.................................................................| 100%
ordinary text without R code
output file: knitr-minimal.tex
[1] "knitr-minimal.pdf"
</pre>
                  <p>
                  </p>
                  <p>
                   初步结论: 是Rstudio的问题.别太放心上了
                   <br/>
                   最后赞一句 谢老大的knitr包真是个天才的设计.
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
                <div class="bbp-reply-header" id="post-347184">
                 <div class="bbp-meta">
                  <span class="bbp-reply-post-date">
                   2013年5月17日 上午3:23
                  </span>
                  <span class="bbp-header">
                   回复：
                   <a class="bbp-topic-permalink" href="http://cos.name/cn/topic/105815/">
                    配合R，精学C还是C++
                   </a>
                  </span>
                  <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/105815/page/2/#post-347184">
                   19 楼
                  </a>
                  <span class="bbp-admin-links">
                  </span>
                 </div>
                 <!-- .bbp-meta -->
                </div>
                <!-- #post-347184 -->
                <div class="odd bbp-parent-forum-999 bbp-parent-topic-105815 bbp-reply-position-19 user-id-380121 post-347184 reply type-reply status-publish hentry">
                 <div class="bbp-reply-author">
                  <a class="bbp-author-avatar" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   <img src="http://sdn.geekzu.org/avatar/06768a9ff8db0b4b8d24c1cfd4b964f8?s=80&amp;d=monsterid&amp;r=g"/>
                  </a>
                  <br/>
                  <a class="bbp-author-name" href="http://cos.name/cn/profile/380121/" rel="nofollow" title="查看simbabest的档案">
                   simbabest
                  </a>
                  <br/>
                  <div class="bbp-author-role">
                   普通会员
                  </div>
                 </div>
                 <!-- .bbp-reply-author -->
                 <div class="bbp-reply-content">
                  <p>
                   回复 第17楼 的 yangyuancn：rpy,rpy2,pyper 三个包 都可以实现在python中使用R. rpy2安装起来很麻烦,建议直接尝试pyper.
                  </p>
                 </div>
                 <!-- .bbp-reply-content -->
                </div>
                <!-- .reply -->
               </li>
               <!-- .bbp-body -->
               <li class="bbp-footer">
                <div class="bbp-reply-author">
                 作者
                </div>
                <div class="bbp-reply-content">
                 帖子
                </div>
                <!-- .bbp-reply-content -->
               </li>
               <!-- .bbp-footer -->
              </ul>
              <!-- #topic-0-replies -->
              <div class="bbp-pagination">
               <div class="bbp-pagination-count">
                查看 15 个帖子 - 1 到 15（总计 15 个）
               </div>
               <div class="bbp-pagination-links">
               </div>
              </div>
             </div>
            </div>
            <!-- #bbp-user-replies-created -->
           </div>
          </div>
         </div>
        </div>
        <!-- .entry-content -->
        <footer class="entry-meta">
        </footer>
        <!-- .entry-meta -->
       </article>
       <!-- #post -->
      </div>
      <!-- #content -->
     </div>
     <!-- #primary -->
     <div class="sidebar-container" id="tertiary" role="complementary">
      <div class="sidebar-inner">
       <div class="widget-area">
        <aside class="widget bbp_widget_login" id="bbp_login_widget-2">
         <h3 class="widget-title">
          登录
         </h3>
         <form action="http://cos.name/cn/wp-login.php" class="bbp-login-form" method="post">
          <fieldset>
           <legend>
            登录
           </legend>
           <div class="bbp-username">
            <label for="user_login">
             用户名:
            </label>
           </div>
           <div class="bbp-password">
            <label for="user_pass">
             密码:
            </label>
           </div>
           <div class="bbp-remember-me">
            <label for="rememberme">
             记住用户名
            </label>
           </div>
           <div class="bbp-submit-wrapper">
            <button class="button submit user-submit" id="user-submit" name="user-submit" tabindex="104" type="submit">
             登录
            </button>
           </div>
           <div class="bbp-login-links">
            <a class="bbp-register-link" href="http://cos.name/cn/wp-login.php?action=register" title="注册">
             注册
            </a>
            <a class="bbp-lostpass-link" href="http://cos.name/cn/wp-login.php?action=lostpassword" title="忘记密码">
             忘记密码
            </a>
           </div>
          </fieldset>
         </form>
        </aside>
        <aside class="widget widget_text" id="text-7">
         <h3 class="widget-title">
          搜索
         </h3>
         <div class="textwidget">
          <form action="http://www.google.com/search" id="bbp-search-form" method="get" onsubmit="Gsitesearch(this)" role="search">
           <div>
           </div>
          </form>
          <form id="bbp-search-form-baidu" onsubmit="g(this)" role="search">
           <div>
           </div>
          </form>
         </div>
        </aside>
        <aside class="widget widget_text" id="text-2">
         <h3 class="widget-title">
          新鲜事
         </h3>
         <div class="textwidget">
          <ul>
           <li>
            <a href="http://cos.name/cn/topics/">
             最新帖子
            </a>
           </li>
           <li>
            <a href="http://cos.name/cn/view/popular/">
             最热门主题
            </a>
           </li>
           <li>
            <a href="http://cos.name/cn/view/no-replies/">
             消灭零回复
            </a>
           </li>
          </ul>
         </div>
        </aside>
        <aside class="widget widget_text" id="text-3">
         <h3 class="widget-title">
          RSS订阅
         </h3>
         <div class="textwidget">
          <ul>
           <li>
            <img src="http://cos.name/wp-includes/images/rss.png"/>
            <a href="http://cos.name/cn/topics/feed/">
             所有主题
            </a>
           </li>
           <li>
            <img src="http://cos.name/wp-includes/images/rss.png"/>
            <a href="http://cos.name/cn/forums/feed/">
             所有帖子
            </a>
           </li>
          </ul>
         </div>
        </aside>
       </div>
       <!-- .widget-area -->
      </div>
      <!-- .sidebar-inner -->
     </div>
     <!-- #tertiary -->
    </div>
    <!-- #main -->
    <footer class="site-footer" id="colophon" role="contentinfo">
     <div class="site-info">
      版权所有 © 2014 统计之都 | 由
      <a href="http://wordpress.org/">
       WordPress
      </a>
      构建 | 主题修改自
      <a href="http://wordpress.org/themes/twentythirteen">
       Twenty Thirteen
      </a>
     </div>
     <!-- .site-info -->
    </footer>
    <!-- #colophon -->
   </div>
   <!-- #page -->
  </div>
 </body>
</html>